﻿@{
    Layout = null;
}
    <script src="/Themes/CoralAdmin/_misc/scripts/ueditor/ueditor.all.js"> </script>
    <script src="/Themes/CoralAdmin/_misc/scripts/ueditor/ueditor.config.js"> </script>
<form id="spform" action="/m/menu/editMenu/@Model.Id" method="post" enctype="multipart/form-data">
    @if (@ViewBag.Msg != null)
    {
        <div class="error_msg">
            @ViewBag.Msg.Msg
        </div>
    }
    <div class="pt_3 js_tabcnt">
        <div class="table_form form_main ">
            <div class="pl_2 pb_3">
                <table>
                    <tbody class="menuType">
                        @Html.AntiForgeryToken()
                        @Html.ValidationSummary(true)
                        <tr>
                            <th>具体内容</th>
                            <td>
                                <textarea id="content" name="content">@Model.Content</textarea>
                                <script type="text/javascript">
                                    UE.getEditor("content")
                                </script>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>

    </div>
    <div class="submitbox p_2 extra_normal">
        <input type="submit" class="btn_1" value="提    交" />
    </div>
</form>
<script>
    $('form').submit(function(e) {
        e.preventDefault();
        var $this = $(this);
        $.post($this.attr("action"), $this.serialize(), function(data) {
            if (data!="") {
                $.alert("修改成功");
                setTimeout("$('.d-close').trigger('click')",1000);
            }
        });
    });
</script>